﻿@using QDT.Core.Projects
@using InputType = QDT.Common.InputType
@section HeadSection
{
    @Html.IncludeScript("~/Content/JS/config.js")
    @Html.IncludeScript("~/Content/JS/project.js")
}
<div class="main_title">
    新增 <a href="@Url.Action("Index", "Project")" class="back_list">返回列表</a></div>
<div class="blank5">
</div>
@using (Html.BeginForm("PostAddProject", "Project")) {
    <div class="button_row">
        <input type="button" class="button conf_btn" rel="1" value="基本信息" />&nbsp;
        <input type="button" class="button conf_btn" rel="2" value="扩展信息" />&nbsp;
    </div>
    <div class="blank5">
    </div>
    <div class="conf_tab">
        <table class="form">
            <tr>
                <td colspan="2" class="topTd">
                </td>
            </tr>
            <tr>
                <td class="item_title">
                    贷款编号:
                </td>
                <td class="item_input">
                    <input type="text" class="textbox require" style="width: 500px;" name="LoanId" value="@ViewBag.LoanId"/>
                </td>
            </tr>
            <tr>
                <td class="item_title">
                    项目名称:
                </td>
                <td class="item_input">
                    <input type="text" class="textbox require" style="width: 500px;" name="Name" />
                </td>
            </tr>
            <tr>
                <td class="item_title">
                    简短名称:
                </td>
                <td class="item_input">
                    <input type="text" class="textbox" name="SubName" value="--" />
                    <span class="tip_span">[用于邮件，短信的显示，字数不得超过20个字]</span>
                </td>
            </tr>

            <tr>
                <td class="item_title">
                    借款金额:
                </td>
                <td class="item_input">
                    <input type="text" class="textbox require" name="BorrowAmount" />
                    <span class="warning_span">[关键信息，一旦添加不能修改]</span>
                </td>
            </tr>
            <tr>
                <td class="item_title">
                    最低投标金额:
                </td>
                <td class="item_input">
                    <input type="text" class="textbox require" name="MinLoanMoney" value="50" />
                </td>
            </tr>
            <tr>
                <td class="item_title">
                    最高投标金额:
                </td>
                <td class="item_input">
                    <input type="text" class="textbox require" name="MaxLoanMoney" />
                </td>
            </tr>
            <tr style="display: none">
                <td class="item_title">
                    易存宝:
                </td>
                <td class="item_input">
                    <label>是<input type="radio" name="IsOffline" value="true" /></label>
                    <label>否<input type="radio" name="IsOffline" value="false" checked="checked" /></label>
                </td>
            </tr>
            <tr  style="display: none">
                <td class="item_title">
                    状态:
                </td>
                <td class="item_input">
                    <label>
                        有效<input type="radio" name="IsEffect" value="true" checked="checked" /></label>
                    <label>
                        无效<input type="radio" name="IsEffect" value="false" /></label>
                </td>
            </tr>
            <tr style="display: none">
                <td class="item_title">
                    能否转让:
                </td>
                <td class="item_input">
                    <label>是<input type="radio" name="AssignAble" value="true" checked="checked" /></label>
                    <label>否<input type="radio" name="AssignAble" value="false" /></label>
                </td>
            </tr>
            <tr  style="display: none">
                <td class="item_title">
                    排序:
                </td>
                <td class="item_input">
                    <input type="text" class="textbox" name="Sort" value="0" />
                </td>
            </tr>
            <tr>
                <td colspan="2" class="bottomTd">
                </td>
            </tr>
        </table>
    </div>
    <div class="blank5">
    </div>

    <table class="form" cellpadding="0" cellspacing="0">
        <tr>
            <td colspan="2" class="topTd">
            </td>
        </tr>
        <tr>
            <td class="item_title">
            </td>
            <td class="item_input">
                <!--隐藏元素-->
                <input type="submit" class="button" value="新增" />
                <input type="reset" class="button" value="重置" />
            </td>
        </tr>
        <tr>
            <td colspan="2" class="bottomTd">

            </td>
        </tr>
    </table>
}

<script type="text/javascript">
     var editor;
     KindEditor.ready(function(keditor) {
         editor = keditor.create('#Description', {
             allowFileManager: true,
            uploadJson: '/Home/UploadImage',
         });
     });
</script>